package com.demo;

import com.demo.controller.StudentController;
import com.demo.controller.UserController;
import com.demo.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author :蕉绿
 * @Date : 2023/2/8 8:44
 * @Version : V1.0
 * @Description :
 */
public class App {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        StudentController controller = context.getBean("studentController",StudentController.class);
        System.out.println(controller.getStudent());


    }
}
